﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;

namespace Frame.WcfContract
{
    [ServiceContract(SessionMode = SessionMode.Allowed, Namespace = "http://azku.net")]
    [ServiceKnownType("GetKnownTypesForBus", typeof(FactoryKnownTypes))]
    public interface IWcfService
    {
        [OperationContract(Name = "ExecCommandByte")]
        byte[] ExecCommandByte(Task task, ref bool result, ref string errMsg);

        [OperationContract(Name = "ExecCommandTask")]
        Task ExecCommandTask(Task task, ref bool result, ref string errMsg);
    }
}
